package net.tycmc.cty.ctyms.timejob.iems.job;

import net.tycmc.cty.ctyms.timejob.common.DateControl;
import net.tycmc.cty.ctyms.timejob.iems.service.WeChatpublicaccountScoreJobService;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @author gaoxiaoxing
 *天远微信公众账户发短信
 */
public class WeChatpublicaccountScoreJob extends QuartzJobBean{
	private WeChatpublicaccountScoreJobService WeChatpublicaccountScoreJobService;

	public WeChatpublicaccountScoreJobService getWeChatpublicaccountScoreJobService() {
		return WeChatpublicaccountScoreJobService;
	}

	public void setWeChatpublicaccountScoreJobService(WeChatpublicaccountScoreJobService WeChatpublicaccountScoreJobService) {
		this.WeChatpublicaccountScoreJobService = WeChatpublicaccountScoreJobService;
	}

	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		System.out.println("---------------------未绑定微信公众账户开始------------------------------"+DateControl.getDateTime(0));
		WeChatpublicaccountScoreJobService.startWeChat();
		System.out.println("---------------------未绑定微信公众账户结束------------------------------"+DateControl.getDateTime(0));
	}
	
}
